package com.fastCms.business.frame.pojo.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 哈密瓜科技 版权所有 © Copyright 2019<br>
 *
 * @Description: 登录权限控制<br>
 * @Project: hami <br>
 * @CreateDate: Created in 2019/3/7 下午3:48 <br>
 * @Author: <a href="lsquan666@163.com">lsquan</a>
 */
@ApiModel(value = "CloudRolePO对象", description = "角色查询对象")
@Data
public class CloudRolePO {
    @ApiModelProperty(value = "角色id", notes = "1.id为空，新增操作 2.id不为空，修改操作")
    private String id;

    @ApiModelProperty(value = "用户id", notes = "用户id")
    @NotNull(message = "用户不能为空")
    private String userId;

    @ApiModelProperty(value = "描述")
    private String description;

    @NotNull(message = "角色名称不能为空")
    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "菜单id数组")
    private List<String> menuIds;

}
